package com.geyue.core.mapper;

import com.geyue.common.repository.Mybatis;
import com.geyue.core.model.Live;
import com.geyue.core.model.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Lyon on 2017/3/24.
 */
@Mapper
public interface LiveMapper extends Mybatis<Live> {

    public List<Live> queryAll();

    public int addTotalById(int id);

    int decreaseTotalById(int liveId);

    public Live getLive(int id );

    public int getTotal(int id);

    public List<Student> getStudent(@Param(value = "id") int id, @Param(value = "type") int type);

    int saveFocus();

    List<Live> getTopList();

    public List<Live> searchLive(@Param(value = "keyword") String keyword);



}
